﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Extend
{
    /*using System.IO;
    using System.Drawing;
    using System.Windows.Forms;

    public static class PictureArray
    {
        public static  byte[] PictureToArray(this PictureBox ptc)
        {
            MemoryStream ms = new MemoryStream();
            ptc.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
            return ms.ToArray();
        }

        public static MemoryStream _MemoryStream(byte[] ByteHinh)
        {
            return new MemoryStream(ByteHinh);
        }

        public static Image ArrayToPicture(this byte[] Array_Image)
        {
            return Image.FromStream(_MemoryStream(Array_Image));
        }
    }*/
}
